package cn.offer.controller;

import cn.offer.domain.YixuePaotuiAddress;
import cn.offer.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @author Snake Eyes
 * @PROJECT_NAME: paotui
 * @DESCRIPTION:
 * @USER: 11647
 * @DATE: 2021/5/19 10:55
 * @Email: 1164763541@qq.com
 */
@RestController
@RequestMapping("user")
public class LoginController {
    @Autowired
    private AddressService addressService;


    @GetMapping("login")
    public void test(HttpServletResponse response) throws IOException {
        response.sendRedirect("/user");
    }
}
